public class Z字 {
    public static int reverse(int x) {
        boolean f=false;
        if(x<0){
            x=-x;
            f=true;
        }
        String s = String.valueOf(x);
        StringBuffer stringBuffer = new StringBuffer(s);
        if(f)
            stringBuffer.append('-');
        stringBuffer.reverse();
        return Integer.parseInt(stringBuffer.toString());
    }

    public static void main(String[] args) {
        System.out.println(reverse(1534236469));
    }
}
